package com.zzyl.nursing.controller.member;

import com.zzyl.common.core.domain.R;
import com.zzyl.nursing.dto.member.MacroAppLoginDto;
import com.zzyl.nursing.service.IMcroAppLoginService;
import com.zzyl.nursing.vo.member.MacroAppLoginVo;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description TODO
 * @Author bo.li
 * @Date 2025/5/23 14:37
 * @Version 1.0
 */
@RestController
@RequiredArgsConstructor
public class UserLoginController {

    private final IMcroAppLoginService mcroAppLoginService;

    @PostMapping("/member/user/login")
    public R<MacroAppLoginVo> login(@RequestBody MacroAppLoginDto loginDto){
        return R.ok(mcroAppLoginService.login(loginDto));
    }
}